package com.bcxj.apiboss.service;

import com.bcxj.apiboss.client.ServiceDriverUserClient;
import com.bcxj.internalcommon.dto.ResponseResult;
import com.bcxj.internalcommon.entity.DriverUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * ClassName: DriverUserService
 * Package: com.bcxj.apiboss.service
 * Description:
 *
 * @Author BCXJ
 * @Create 2024/10/19 11:49
 * @Version 1.0
 * @Since 1.0
 */
@Service
public class DriverUserService {

    @Autowired
    private ServiceDriverUserClient serviceDriverUserClient;

    /**
     * 增加司机信息
     * @param driverUser
     */
    public ResponseResult addDriverUser(DriverUser driverUser) {

        return serviceDriverUserClient.addUser(driverUser);
    }


    /**
     * 更新司机信息
     * @param driverUser
     * @return
     */
    public ResponseResult updateDriverUser(DriverUser driverUser) {

        return serviceDriverUserClient.updateUser(driverUser);
    }
}
